package com.white.algebra.service.impl;

import com.white.algebra.dao.SysLogDao;

import com.white.algebra.dao.impl.SysLogDaoImpl;
import com.white.algebra.domain.Syslog;
import com.white.algebra.service.SysLogService;

import java.sql.SQLException;
import java.util.List;

public class SysLogServiceImpl implements SysLogService {
    private SysLogDao sysLogDao=new SysLogDaoImpl();
    @Override
    public void addSysLog(Syslog sysLog) throws SQLException {
        sysLogDao.addSysLog(sysLog);
    }

    @Override
    public List<Syslog> findAll(int page, int size,String username) throws SQLException {
        return sysLogDao.findAll( page, size,username);
    }

    @Override
    public void deleteSysLog() throws SQLException {
        sysLogDao.deleteSysLog();
    }

    @Override
    public int getLogNum(String username) throws SQLException {
        return sysLogDao.getLogNum(username);
    }
}
